﻿//======================================================
//==     (c)2008 aspxcms inc by NeTCMS v1.0              ==
//==          Forum:bbs.aspxcms.com                   ==
//==         Website:www.aspxcms.com                  ==
//======================================================
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using NetCMS.DALFactory;
using NetCMS.Model;

namespace NetCMS.Content
{
    public class Mycom
    {
        private IMycom dal;
        public Mycom()
        {
            dal = NetCMS.DALFactory.DataAccess.CreateMycom();
        }
        #region usermycom_Look.aspx
        public DataTable sel_apiCommentary(string Commid,int flag)
        {
            return dal.sel_apiCommentary(Commid, flag);
        }
        public int Update(string Title, string Contents, DateTime CreatTime, string Commid)
        {
            return dal.Update(Title, Contents, CreatTime, Commid);
        }
        public DataTable GetPage(string UserNum2, string GoodTitle2, string UserNum, string title, string Um, string dtm1, string dtm2, string isCheck, string islock, string SiteID, string InfoID, string APIID, string DTable, int PageIndex, int PageSize, out int RecordCount, out int PageCount, params SQLConditionInfo[] SqlCondition)
        {
            return dal.GetPage(UserNum2, GoodTitle2, UserNum, title, Um, dtm1, dtm2, isCheck, islock, SiteID,InfoID,APIID,DTable, PageIndex, PageSize, out RecordCount, out PageCount, SqlCondition);
        }
        //public DataTable sel_1()
        //{
        //    return dal.sel_1();
        //}
        public string sel_newsClass(string InfoID, string datalib)
        {
            return dal.sel_newsClass(InfoID, datalib);
        }
        public string sel_Info(string UserNum,int flag)
        {
            return dal.sel_Info(UserNum,flag);
        }
        public void Delete(string Commid)
        {
            dal.Delete(Commid);
        }
        public int update_apiCommentary(int OrderID, string Commid,int flag)
        {
            return dal.update_apiCommentary(OrderID, Commid,flag);
        }
        public void update_commentary(int GoodTitle, string Commid)
        {
            dal.update_commentary(GoodTitle, Commid);
        }
        #endregion
    }
}